package com.lekang.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lekang.common.annotation.Excel;
import com.lekang.common.core.domain.BaseEntity;

/**
 * 余额对象 balance
 * 
 * @author ruoyi
 * @date 2025-10-15
 */
public class Balance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 老人外键ID */
    @Excel(name = "老人外键ID")
    private Long elderlyId;

    /** 预交款余额 */
    @Excel(name = "预交款余额")
    private BigDecimal prepaymentBalance;

    /** 押金余额 */
    @Excel(name = "押金余额")
    private BigDecimal depositBalance;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 额外字段1 */
    private String extraField1;

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 额外字段2 */
    private String extraField2;
    //    关联老人表
    private String elderlyName;
    //    关联床位表
    private String bedNo;
    private String creatorName;   // 创建人姓名
    //    创建人get/set方法
    public String getCreatorName() {
        return creatorName;
    }
    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
//    老人姓名、床位号get/set方法


    public String getElderlyName() {
        return elderlyName;
    }

    public void setElderlyName(String elderlyName) {
        this.elderlyName = elderlyName;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setElderlyId(Long elderlyId) 
    {
        this.elderlyId = elderlyId;
    }

    public Long getElderlyId() 
    {
        return elderlyId;
    }

    public void setPrepaymentBalance(BigDecimal prepaymentBalance) 
    {
        this.prepaymentBalance = prepaymentBalance;
    }

    public BigDecimal getPrepaymentBalance() 
    {
        return prepaymentBalance;
    }

    public void setDepositBalance(BigDecimal depositBalance) 
    {
        this.depositBalance = depositBalance;
    }

    public BigDecimal getDepositBalance() 
    {
        return depositBalance;
    }

    public void setExtraField1(String extraField1) 
    {
        this.extraField1 = extraField1;
    }

    public String getExtraField1() 
    {
        return extraField1;
    }

    public void setExtraField2(String extraField2) 
    {
        this.extraField2 = extraField2;
    }

    public String getExtraField2() 
    {
        return extraField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("elderlyId", getElderlyId())
            .append("prepaymentBalance", getPrepaymentBalance())
            .append("depositBalance", getDepositBalance())
            .append("updateTime", getUpdateTime())
            .append("extraField1", getExtraField1())
            .append("extraField2", getExtraField2())
            .toString();
    }
}
